import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { InspectionComponent } from './inspection.component';

@NgModule({
  imports: [
    CommonModule,
    NgZorroAntdModule,
    FormsModule,
    RouterModule.forChild([
      {
        path: '', component: InspectionComponent,
        children: [
          // { path: 'quality-issues', loadChildren: './quality-issues/quality-issues.module#QualityIssuesModule' }, // 质量问题,
          { path: 'inspection-records', loadChildren: './inspection-records/inspection-records.module#InspectionRecordsModule' }, // 巡检记录详情
          // { path: 'progress-issues', loadChildren: './progress-issues/progress-issues.module#ProgressIssuesModule' }, // 进度问题
          { path: 'inspect-item-setting', loadChildren: './inspect-item-setting/inspect-item-setting.module#InspectItemSettingModule' }, // 检查项设置
          { path: 'inspect-property-setting', loadChildren: './inspect-property-setting/inspect-property-setting.module#InspectPropertySettingModule' }, // 检查性质设置
        ]
      }])
  ],
  declarations: [InspectionComponent]
})
export class InspectionModule { }
